package com.ljx.recruitment.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ljx.recruitment.common.domain.vo.resp.PageResp;
import com.ljx.recruitment.user.domain.dto.TenantMenuDto;
import com.ljx.recruitment.user.domain.entity.Menu;
import com.ljx.recruitment.user.domain.vo.req.MenuPageReq;
import com.ljx.recruitment.user.domain.vo.req.MenuSubmitReq;
import com.ljx.recruitment.user.domain.vo.req.MenuToRoleReq;

import java.util.Arrays;
import java.util.List;

public interface MenuService extends IService<Menu> {
    List<Long> getMenuIdByRoleIds(List<Long> roles);

    List<Menu> getMenuByIds(List<Long> menuIds);

    List<TenantMenuDto> init();

    PageResp<Menu> getPage(MenuPageReq req);

    Menu submit(MenuSubmitReq req);

    void allocationToRole(MenuToRoleReq req);

    List<Menu> getMenuByCodes(List<String> menuCodes);
}
